Skip to content

fix: Create parent directories for uploaded files with subdirectory p…#25

Merged
NerdsCorp merged 1 commit into
mainfrom
claude/fix-api-400-error-LD9LR
Dec 28, 2025
Merged

fix: Create parent directories for uploaded files with subdirectory p…#25
NerdsCorp merged 1 commit into
mainfrom
claude/fix-api-400-error-LD9LR

Conversation

@NerdsCorp

Copy link
Copy Markdown
Owner

…aths

When file.FileName contains subdirectories (e.g., "client\resources\animations\Campfire.png"), the upload would fail with DirectoryNotFoundException because intermediate directories weren't created.

Added check to create parent directory structure before writing each file, fixing 400 errors on POST /api/v1/editor/updates/client endpoint.

Fixes issue where uploading files with nested paths would fail even though the base destination folder was created.

…aths

When file.FileName contains subdirectories (e.g., "client\resources\animations\Campfire.png"),
the upload would fail with DirectoryNotFoundException because intermediate directories weren't created.

Added check to create parent directory structure before writing each file, fixing 400 errors
on POST /api/v1/editor/updates/client endpoint.

Fixes issue where uploading files with nested paths would fail even though the base
destination folder was created.
@NerdsCorp NerdsCorp merged commit bd6a37e into main Dec 28, 2025
1 check passed
@NerdsCorp NerdsCorp deleted the claude/fix-api-400-error-LD9LR branch December 28, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants